import {useSearchParams, useParams} from 'react-router-dom'

export default function About() {
  const [searchParams] = useSearchParams()
  let id = searchParams.get('id')
  const params = useParams()
  console.log(params);
  return (
    <div>
      <div>Abount</div>
      {id ? <div>detail id:{id}</div> : null}
      {params ? <div>params :{JSON.stringify(params)}</div> : null}
    </div>
  )
}
